﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Team
{
    TeamData data;

    public List<Character> characters = new List<Character>();

    public Team(TeamData teamData)
    {
        data = teamData;
        foreach(CharacterData characterData in data.characters)
        {
            Character newCharacter = new Character(characterData);
            newCharacter.team = this;
            characters.Add(newCharacter);
        }
    }
}
